package _220308;

import java.util.Scanner;

/**
 * @author ShadowLim
 * @create 2022-03-08-17:36
 */
public class _成绩统计 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        double jige = 0, youxiu = 0;
        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            if (a >= 60) {
                if (a >= 85) {
                    youxiu++;
                }
                jige++;
            }
        }
        System.out.println(Math.round(jige * 100 / n) + "%");
        System.out.println(Math.round(youxiu * 100 / n) + "%");
    }
}
